public class VarDemo3 {
    public static void main(String[] args){
        //定义八大基本数据的变量，并打印
        //整形：byte,short,int,long
        byte num1 = 1;
        short num2 = 2;
        int num3 = 3;
        long num4 =5L;
        System.out.println("num1="+num1);
        System.out.println("num2="+num2);
        System.out.println("num3="+num3);
        System.out.println("num4="+num4);

        //小数float double
        float num5 = 500.123F;
        double num6 = 500.132465465;
        System.out.println("num5="+num5);
        System.out.println("num6="+num6);

        //char 字符型
        char num7 = 'a';
        System.out.println(num7);

        //boolean 布尔类型
        System.out.println(true);
        System.out.println(false);
        System.out.println(2>1);
        System.out.println(2<1);




    }
}
